import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex) // this.$vuex.state.name='jx'

export default new Vuex.Store({
  state: {
    name: 'tom'
  },
  mutations: {
    setname(state,newval){
      state.name = newval
    }
  },
  actions: {
  },
  modules: {
  }
})
